import { Column, Entity, PrimaryGeneratedColumn, BaseEntity, CreateDateColumn, UpdateDateColumn, OneToMany } from 'typeorm';
import { Auth } from './auth.entity';
@Entity()
export class Role extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;
    @Column()
    roleName: string;
    @Column('tinyint')
    status: number;
    @Column('tinyint')
    isSuper: number;
    @Column()
    roleDesc: string;
    @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
    createTime: Date;
    @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
    updateTime: Date;
    @OneToMany(() => Auth, auth => auth.role)
    auth: Auth[];
}
